#include "../include/inner_object.h"
#include "../include/event.h"

unsigned int global_id = 0;

InnerObject::InnerObject()
{
	id = global_id++;
}

InnerObject::InnerObject(Object &obj)
{
	id = global_id++;
	this->public_info = obj;
}

pObject InnerObject::getPublicInfo()
{
	return &public_info;
}

hObject InnerObject::getHObject()
{
	return ((((unsigned long long)this) << 32) + id);
}

bool InnerObject::operator==(InnerObject &obj)
{
	return this->id == obj.id;
}